package eu.telecom_bretagne.RECRUT.data.model;

import java.io.Serializable;

import javax.persistence.*;

import java.util.Date;


/**
 * The persistent class for the entretien database table.
 * 
 */
@Entity
@NamedQuery(name="Entretien.findAll", query="SELECT e FROM Entretien e")
public class Entretien implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(name="ENTRETIEN_ID_GENERATOR", sequenceName="ENTRETIEN_ID_SEQ", allocationSize=1)
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="ENTRETIEN_ID_GENERATOR")
	private Integer id;

	@Temporal(TemporalType.DATE)
	@Column(name="date_entretien")
	private Date dateEntretien;

	//bi-directional many-to-one association to DossierCandidature
	@ManyToOne
	@JoinColumn(name="id_dossier")
	private DossierCandidature dossierCandidature;

	public Entretien() {
	}

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Date getDateEntretien() {
		return this.dateEntretien;
	}

	public void setDateEntretien(Date dateEntretien) {
		this.dateEntretien = dateEntretien;
	}

	public DossierCandidature getDossierCandidature() {
		return this.dossierCandidature;
	}

	public void setDossierCandidature(DossierCandidature dossierCandidature) {
		this.dossierCandidature = dossierCandidature;
	}

}